package com.eedi.framework.sms.enums;


import com.eedi.framework.common.exception.ErrorCode;
import com.eedi.sys.enums.SysErrorCode;
import com.eedi.sys.enums.SysErrorCodeType;

/**
 * System 错误码枚举类
 *
 * system 系统，使用 1-002-000-000 段
 */
public interface SysSmsErrorCodeConstants {

    // ========== 短信渠道 1-002-011-000 ==========
    ErrorCode SYS_SMS_CHANNEL_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.SMS,0, "短信渠道不存在");
    ErrorCode SYS_SMS_CHANNEL_DISABLE = new SysErrorCode(SysErrorCodeType.SMS,1, "短信渠道不处于开启状态，不允许选择");
    ErrorCode SYS_SMS_CHANNEL_HAS_CHILDREN = new SysErrorCode(SysErrorCodeType.SMS,2, "无法删除，该短信渠道还有短信模板");

    // ========== 短信模板 1-002-012-000 ==========
    ErrorCode SYS_SMS_TEMPLATE_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.SMS,3, "短信模板不存在");
    ErrorCode SYS_SMS_TEMPLATE_CODE_DUPLICATE = new SysErrorCode(SysErrorCodeType.SMS,4, "已经存在编码为【{}】的短信模板");
    ErrorCode SYS_SMS_TEMPLATE_API_ERROR = new SysErrorCode(SysErrorCodeType.SMS,5, "短信 API 模板调用失败，原因是：{}");
    ErrorCode SYS_SMS_TEMPLATE_API_AUDIT_CHECKING = new SysErrorCode(SysErrorCodeType.SMS,6, "短信 API 模版无法使用，原因：审批中");
    ErrorCode SYS_SMS_TEMPLATE_API_AUDIT_FAIL = new SysErrorCode(SysErrorCodeType.SMS,7, "短信 API 模版无法使用，原因：审批不通过，{}");
    ErrorCode SYS_SMS_TEMPLATE_API_NOT_FOUND = new SysErrorCode(SysErrorCodeType.SMS,8, "短信 API 模版无法使用，原因：模版不存在");
    ErrorCode SYS_SMS_TEMPLATE_MUST_AVOID_UPDATE = new SysErrorCode(SysErrorCodeType.SMS,9, "短信模板必选模式,不允许更新通知模式");


    // ========== 短信发送 1-002-013-000 ==========
    ErrorCode SYS_SMS_SEND_MOBILE_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.SMS,10, "手机号不存在");
    ErrorCode SYS_SMS_SEND_MOBILE_TEMPLATE_PARAM_MISS = new SysErrorCode(SysErrorCodeType.SMS,11, "模板参数({})缺失");
    ErrorCode SYS_SMS_SEND_TEMPLATE_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.SMS,12, "短信模板不存在");

    // ========== 短信验证码 1-002-014-000 ==========
    ErrorCode SYS_SMS_CODE_NOT_FOUND = new SysErrorCode(SysErrorCodeType.SMS,13, "验证码不存在");
    ErrorCode SYS_SMS_CODE_EXPIRED = new SysErrorCode(SysErrorCodeType.SMS,14, "验证码已过期");
    ErrorCode SYS_SMS_CODE_USED = new SysErrorCode(SysErrorCodeType.SMS,15, "验证码已使用");
    ErrorCode SYS_SMS_CODE_NOT_CORRECT = new SysErrorCode(SysErrorCodeType.SMS,16, "验证码不正确");
    ErrorCode SYS_SMS_CODE_EXCEED_SEND_MAXIMUM_QUANTITY_PER_DAY = new SysErrorCode(SysErrorCodeType.SMS,004, "超过每日短信发送数量");
    ErrorCode SYS_SMS_CODE_SEND_TOO_FAST = new SysErrorCode(SysErrorCodeType.SMS,17, "短信发送过于频繁");
    ErrorCode SYS_SMS_CODE_IS_EXISTS = new SysErrorCode(SysErrorCodeType.SMS,18, "手机号已被使用");
    ErrorCode SYS_SMS_CODE_IS_UNUSED = new SysErrorCode(SysErrorCodeType.SMS,19, "验证码未被使用");

    ErrorCode SYS_SMS_MSG_OR_TEMPLATE_ID_PARAM_ALL_EMPTY = new SysErrorCode(SysErrorCodeType.SMS,20, "短信配置id和微信模板配置id不能同时为空");
    ErrorCode SYS_SMS_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.SMS,21, "短信配置信息不存在");





}
